import BaseList from '../base/BaseList.js';
import BlackListItem from './BlackListItem.js';

function BlackList () {
    BaseList.call(this);
 }
let prototype = Object.create(BaseList.prototype);
prototype.constructor = BlackList;
BlackList.prototype  = prototype;

BlackList.prototype.updateData = function(userIds){
    this.setItems( userIds.map(userId=>new BlackListItem().updateDataByUserID(userId)));
}

export default BlackList;
